yjx.directive('historyBack',['ipCookie','$state','$locals','$timeout',function (ipCookie,$state,$locals,$timeout) {
    return{
        restrict:'EA',
        link:function ($scope,$elem,attr) {
            $elem.bind('click',function () {
               history.back();
            })
        }
    }
}])